import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * anchor模块-主播相册
 */
@Entity('anchor_info_image')
export class AnchorInfoTypeEntity extends BaseEntity {
  @Index()
  @Column({ comment: '主播', length: 100 })
  anchorId: string;

  @Column({ comment: '主播图片', length: 255 })
  anchorImage: string;

  @Column({ comment: '类型 0-图片 1-视频', default: 0, type: 'tinyint' })
  type: number;

  @Column({ comment: '分类' })
  category: string;
  
}
